﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;

#nullable disable

namespace ZH.GPT.Domains.User.Request
{
    /// <summary>
    /// 用户DTO_输入
    /// </summary>
    public partial class UserQDTO
    {
        /// <summary>
        /// 用户ID
        /// </summary>
        public Guid Id { get; set; }

        /// <summary>
        /// 账号
        /// </summary>
        [Required]
        public string Account { get; set; }

        /// <summary>
        /// 密码
        /// </summary>
        [Required]
        [StringLength(60)]
        //[RegularExpression(@"^[A-Z]+[a-zA-Z''-'\s]*$")]
        public string Password { get; set; }

        /// <summary>
        /// 名称
        /// </summary>
        [StringLength(30, MinimumLength = 2)]
        public string Name { get; set; }

        /// <summary>
        /// 是否是管理员
        /// </summary>
        [Range(0, 1)]
        public sbyte? IsAdmin { get; set; }

        /// <summary>
        /// 是否是超级管理员
        /// </summary>
        [Range(0, 1)]
        public sbyte? IsSuperAdmin { get; set; }

        /// <summary>
        /// 公司ID
        /// </summary>
        public Guid? TenantId { get; set; }

        /// <summary>
        /// 部门
        /// </summary>
        public Guid? DepartmentId { get; set; }
    }
}
